package com.bzm.goods.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.bzm.dubbo.api.goods.GoodsInfoDubboService;
import com.bzm.goods.mapper.GoodsInfoMapper;
import com.bzm.pojo.goods.GoodsInfo;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@Service(protocol = "dubbo")
public class GoodsInfoDubboServiceImpl extends ServiceImpl<GoodsInfoMapper, GoodsInfo> implements GoodsInfoDubboService {

    @Autowired
    private GoodsInfoMapper goodsInfoMapper;

    @Override
    public List<GoodsInfo> selectList() {
        QueryWrapper<GoodsInfo> queryWrapper = new QueryWrapper<>();
        List<GoodsInfo> list = goodsInfoMapper.selectList(queryWrapper);
        return list;
    }
}
